<?php

class Url extends CComponent
{
    protected $url;

    public function init()
    {
        $this->url=Yii::app()->getBaseUrl(true).Yii::app()->theme->baseUrl;
    }

    public function getTheme()
    {
        return $this->url.'/';
    }
}